package org.ricks.net.protocol;

/**
 * 内部交互的消息头
 * 协议分两种 内部传递协议 和 对外协议
 */
public class HeadMetadata {

    protected long userId;//玩家ID
    protected int moduleId; //模块ID
    protected int nodeId; //模块节点ID
    protected short cmd;  //路由指令
    protected byte[] attachmentData;


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getModuleId() {
        return moduleId;
    }

    public void setModuleId(int moduleId) {
        this.moduleId = moduleId;
    }

    public int getNodeId() {
        return nodeId;
    }

    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    }

    public short getCmd() {
        return cmd;
    }

    public void setCmd(short cmd) {
        this.cmd = cmd;
    }

    public byte[] getAttachmentData() {
        return attachmentData;
    }

    public void setAttachmentData(byte[] attachmentData) {
        this.attachmentData = attachmentData;
    }
}
